added design for flash error messages