Created posts controller and views