Moves sidebar logic into controlsView