solvet the problem of button confirm