change the left menu to take hidden page into account