clear selection if the selected widget is no longer on screen after layout