setting up email notifications + small refactor on how notification messages are set