changed ajax call from get to post