updated the date pickers and conected the to the API correctly