modified post controller and post view