Add Segment control to turn on or turn off gradient color
Some refactor to fix some hacks