rendering close and binding event