add option to force closing tag on click