Added function to update attributes of an calendar item.