wait for html before setting data