selecting traits
only update traits when a class is selected