refactored some post_controller stuff