fix bug and change the post controller