Re-updated posts controller