add dom ready call