Rename BranchView to CommandView and minor refactoring