updating resources and todos