changed GET endpoint of AJAX call