Use selection events to change windows.