Refactored sidebar into separate file