modify view for posts in show and edit