type dropdown selection working