Improve flash notification and fix email check system