fixed alert and notice in header to display only when present