formatting icons and error message