more sidebar optimizations