adding and removing date range + date based on tab clicks