colorize the module info on the switch page
 - common function with module page
 - also some de-spaghettiing