Let changing the click action take effect immediately