extensive conditionals to fine tune the classes output for icons