implemented freeze/unfreeze action