got page switching working