Added option to set text of close button.