added threshold range controls