change where the post method is called