added controller and views for post model