Improved interaction between switching panes and selecting different items