Create posts controller