UI system refactored out of ssh code