adde re-attaching to chrome functionality (thanks to lunatyk)