option to show error icon and set error icon action