quick implementation for testing tui and controller