continued improving user interface chart maker

cleaned up some code