initializing ui environment