pageviewer causing null exceptions