Patch suggested by Paul \ Roberto for fixing graphical glitches when adding pages that are parented to the main frame rather than the notebook.