Rename "else" to "then". Changed TableView to TableWidget

Rename "else" to "then". Changed TableView to TableWidget