use isolate function to change the behavior of actionbutton