generate Posts controller