show flash message only when there is notice or alert.