implementing enable/disable notifications preference