update flash message style and fade out with query