changed posts controller