My code is supposed to ask the user to choose a range from the calendar modal by pressing Pick Date Range. This then goes through an api call in MAIN and re