issue #3861, add focus functionality to ui framework