fixed some flash message display probs