Remove unnecessary buttonIndex check