modualize sidebar.