Fixed bug that caused table view to disappear when rotating phone