adding myevent listener