removes textEdit box when user clicks off the element