slim down posts controller with before actioin