Hello, I'm sorry I bumped old and solved article, so I'm opening new.
The problem is here:
This works fine, except that I have to click button two times the first time to change the status. later itr works fine. Anyone knows how to fix that?