pub fn initial_mode(con: &AppContext) -> Mode