add new attribute componentList in which a list of components can be passed and th-connector creates a menu