regarding ensuring sidebar stays fixed: add this to the CSS file
.sidebar{
position: fixed;
top: 0;
height: 100vh;
overflow-y: auto;
}