modified resultPageSetup() by Mark/John