Change pageLoaded event behavior.