handle multiple onpagestarted