edit post
add delete method to api