new version to get viewPage