moved 'retrieve.php' to the lib folder redirected the ajax url call