added ability to add class to close button