Update ui_api_refactor.py

A few minor changes
Merge pull request #3 from Psy-Fi/patch-1

Update ui_api_refactor.py