changed window title and moved colorizing labels to a method