Issue #22 refactored sidebar into a component