added some admin views, only send email in production