setCancelButtonIndex updates tag in self.controls