1. rewrite remaining gtk code. 2. remove some unnecessary code. 3. remove gtk color function, not being called in current test cases, need to add it back when some dot graphs triggers it