added update method for dynamically changing events