Made ui global. Screw good practice :)