changed mostly gui and optimization stuff

added global settings
added the option to show only color boxes that are on the same line as the mouse (disabled now)