fixed fault, when calling non-existant function; added call to clear() in TextEdit