added domReady and wrapped the component task in dom ready event