Updated posts controller"