added to post controller and made a view for posts