makes the flash messages better and adds one to the list index.