Function traverseControls