simplify getting state from event for colour selction