Fix instance switcher labels

fixes #97 on github.

Logic was totally wrong for deciding which label to use.

Refactor a bit to be as DRY as possible.
Merge pull request #104 from steventlamb/bug/97_fix_instance_switcher_labels

Fix instance switcher labels