made color detection stable
added color selector