Change wait for ajax