Add 2 new function getAND and getNOT state of button