Added a page title and a check to make sure there are at least one row in pageView