refactorings of sidebar-view