added routes to post controller and views