working switch for random colors and output