finally fixed the sidebar view