more reliable page switching