date range search in controller