add adminpages and admin functions