Change method to get icons and add Code of the messages and errors