Table selection e gestione code