optimizing sidebar