added close btn default and new options for text input to data-attributes