postCtrl refactoring