added email via heroku/sendgrid, added flash alerts, refactored helper for datatables rows