Used notification API to enable and disable notifications