Update ui_api_refactor.py

Some naming changes
Merge pull request #1 from Psy-Fi/patch-1

Update ui_api_refactor.py