color to tree view and some bug fixes