Implement sidebar with CSS classes

Instead of styling in the js code itself