improved showSelection