adding edit button to post detail