Switched posts controller to generic postController