fixed bug with sidebar not hiding