simpler page names and cleaner code, partial switch statement