changed POST requests in AJAX to GET request