added ability to auto-close the text/info window