Added more debug info. to page toggeling detection