clear page chooser before adding pages