Added close button event