reorganised page views and merged variables