fix some tui issues