How to enable and disable notifications