add listener and random value