adding a posts controller