changed alerts into messages, and the Java backend can add an HTML id in which to place the message to a MessageDto