updated post controller and views