Added the disable date range functionality as well as autoselect end date