add missing try block to ui