changing post to get method