move template variable to Page class