changed page variables to page array in admin