renamed handleChange to updateResult