I have tried to apply the same conditions to two different buttons.