dynamic event binding method (ver. 1)