Enhance getPage in PageFactory

New PR to develop instead of master see #89.