Im so sorry , i just now found this post by searching.. and im having the same problem.
IT is not working the setting of the button...

i will cross link my POST :

Button state problem [with code]