Reorder ui.py