here you got both wait for ajax and sleep