added case statement to apply correct class when using flash notices and alerts