Added AddPageBeforePane and AddPageAfterPane