Fix bugs with updating model name text, and be better about getting IDs