refactored sidebar to partial