Transform sidebar to module