Update ui.py

to recognize windows file system