Added a showRanges attribute which  defaults to false and a selected attribute to control which range is selected