added email notification system