REGISTERING TO THE EVENT