adding alerts to see the flow of the ajax call