ajax for the application