Prevent tableview updates when not visible

Addresses a serious performance issue.