added trigger('change') after state change