logic for icon rendering