if error make tableview and others disappear