improved colorblindness mode and fixed resource leaks