minor bug fix: hide sidebar button not correctly working