implement valurcomplete event