update instance.updated when state changes