fixing page hierarchy