changes to post controller and view