showMessages: attach data attribute to shown messages