changes to post controller