Close info message when window or text is clicked