Generating posts controller