update to post controller