added main / modified tui