Fixed no data php errors

- Fixed header and page view views to only display certain info when
page isn't null