add update and delete to post controller and add delete button to edit post page