Added notification eventhandler and attached the API calls to give proper notifications through it.