Added security in case page is already in the dom