change routes from get to post