changed logic to get task list for spicified date range
improved search function