What extension are you using for the button? Setting up an extension to switch complicated expressions can be a challange. An alternative could be to let the button just change a flag, and then use the flag in the actual expression to switch between your different expressions. I have described that method in a post here:
Hope this helps
Please mark as Helpful and/or correct if this is of any help.