adding message flashing