replaced "switch" statement with "if"
introduced role to determine the type of a RefItem
replaced isContentItem() with an ItemType
added "Jump to current branch" button instead of the non-functional "Local", "Remote" buttons