implement simple UIHandler (AdvancedHandler refactoring)