added debug in getPageViews()