refactor layout and sidebar styling