added ifs for categories.icon