entry deletion: unselect entry before removing it