date range buttons working