injected TUI and GUI