changed addError to addMessage and modified so that repeating messages would not be added to the messages list, only the new row number would be added to the original message in the messages list