use domReady isntead of attached