update selection handling