adding post controller and view