icons render logic extraction