added method for registering an updateHandler