Conditional setup for onClick of button
Conditional setup for on click function of button