Update UIfunctions.py