Util function for toggling toggles.