template page switching