added edit action for posts