Fixed my version of admin UI function