pub fn draw_ui( terminal: &mut Terminal<CrosstermBackend<Stdout>>, state: &mut UIState, ) -> Result<()>