added update handle and closing method