Add hideRanges options

Add hideRanges and applyOnClick options.