ajax post methods changed to get method