edits the flash alert messages