path gets new data in the update function. works for adding new, but it breaks when switching day/week/month after that