generated posts controller