changed method from get to post