add the icon resource id retrieval function