Created posts controller and modified views.