update model on onChange event

update model on onChange event to detect color changes