improve edit post and add delete post  feature