add close button to error flash