Update posts controller