added message flashing