Added update function in the back to save agenda items