update post ctrl.js