refactor date range url