added ability to select sections on the graph