setting up admin functions