Conditions not working on button checkbox widget