added ui and terminal_ui