diff --git a/backend/server.js b/backend/server.js
index 2e40ee29bd62ee43b7494ae2085f3bf274e949b7..f016a8eaa1d7b9c3df26ec6bbebfc840e68d43ae 100644
--- a/backend/server.js
+++ b/backend/server.js
@@ -223,7 +223,7 @@ app.get('/deleteparty/:id', (req,res) => {
   db.run('DELETE FROM party WHERE id=?',[req.params.id], () =>{
     db.run('DELETE FROM party_members WHERE party_id=?', [req.params.id], () =>{
       db.run('DELETE FROM songs WHERE party_id=?',[req.params.id], () =>{
-        return res.status(200);
+        res.status(200).send();
       })
     })
   })
diff --git a/frontend/src/actions/playlistActions.js b/frontend/src/actions/playlistActions.js
index ac0d3be0a39bf4c595f76874db5e683bcd2f5817..00dfcff6b55d8080634a9a636950d461563128d7 100644
--- a/frontend/src/actions/playlistActions.js
+++ b/frontend/src/actions/playlistActions.js
@@ -115,7 +115,7 @@ export const savePlaylist = (body,history) => dispatch => {
   .post(`https://thespotifierapp.herokuapp.com/saveplaylist/${body.id}`, body)
   .then(res => {
     history.push('/dashboard')
-    window.location.href="http://localhost/dashboard"
+    window.location.href="http://localhost:3000/dashboard"
     dispatch({
       type: ADDED_PLAYLIST,
       payload: {}
@@ -157,7 +157,7 @@ export const deletePlaylist = (id,history) => dispatch =>
         .delete(`https://thespotifierapp.herokuapp.com/deleteparty/${id}`)
         .then(res => {
             history.push('/dashboard');
-            window.location.href="http://localhost/dashboard"
+            window.location.href="http://localhost:3000/dashboard"
         }
         )
         .catch(err => {dispatch({type:GET_ERRORS,payload: err.response.data})})
diff --git a/frontend/src/components/edit-playlist/EditPlaylist.js b/frontend/src/components/edit-playlist/EditPlaylist.js
index e82700ca9b70941d81e43b6ec17b43f1447f7175..5f2cd52478e5f2919775fd81008470ddde87ae3d 100644
--- a/frontend/src/components/edit-playlist/EditPlaylist.js
+++ b/frontend/src/components/edit-playlist/EditPlaylist.js
@@ -50,7 +50,6 @@ class EditPlaylist extends Component {
           userid: this.state.profile.profile.id,
           playlistname : this.state.partyDetail.partyName,
           token: this.state.token
-
         }
 
         this.props.savePlaylist(body,this.props.history);
@@ -67,17 +66,14 @@ class EditPlaylist extends Component {
         })
       }
 
-    componentWillReceiveProps(nextProps){
-        if(nextProps.playlists.partyDetails){
-               this.setState({partyDetail:nextProps.playlists.partyDetails});
-         }
-
-      if (nextProps.profile)
-        this.setState({profile: nextProps.profile});
-
-
-      if(nextProps.auth)
-        this.setState({token : nextProps.auth.token});
+    componentWillReceiveProps(nextProps) {
+      if (nextProps) {
+        this.setState({
+          partyDetail: nextProps.playlists.partyDetails,
+          profile: nextProps.profile,
+          token: nextProps.auth.token
+        });
+      }
     }
     
   render() {