Condition around samsung d8000. Now addeds unload event listener instead of hide