Added some calls to refresh() in TUI.