update dom ready