Create adminFunction