visibility change event wasn't firing