add types to select (setTypes) and set a type (setType)