Modified the layout so that it can show unlimited amount of bars