refactor for DebugActivity and update DefaultPageListener