styling and refactoring partials for sidebar