Update close button event