generic sidebar open & close handlers