fixes to resizing, fixed sidebar