Refactoring bar view to display both horizontal and vertical