Created posts controller