Colored and fixed major bug concerning selecting and deselecting classes