added events to the cleint.