correct sidebar open/close