Allow for re-ordering pages

could you explain how you're using "hiddenPages" or what a hiddenPage is?