Adding the dismiss button to the flash messages.