better way to sync page hierarchies