remove unnecessary and inappropriate flash messages