changed textEdit to textInput; added loading bar