move the child page to the dom when attached