finishing edit/delete post functionality