ui changed to be a class property