added the update and edit actions/views for posts