Selected node/edge rows are now highlighted when changing the table mode to ALL.
Minor code reformatting and cleanup.