[BUGFIX] Only reload pagetree if pages are changed