Add timeout and fix legend styling when updating trial exams too