6668 toggle correct page theme class

Fix #6668.