for TextEdit removed pointer to class