refactored side bar