edit post and delete post successfully