dailaog box with min and max.