Created post controller with views