make dynamic side bar