adding notification function for email