posts controller refactored pretty weel