side bar styles and refactor