added ability to add arbitrary pages and menu items