Update ui.py

changed for new classes