ctrl.selected add to check where it's undefined