Updated side bar behavior for not selected code