add post controller and view functionality