Added functionality to enter range of dates