add update action in posts controller
add show and edit link to index view
add edit link to show post view