Implement close button.