Fixed bug where sidebar was still taking up half the scren if it was closed