added toggle for on-off email