refactors sidebar views