moves admin functions inside the admin namespace