moved freeze and unfreeze commands into PauseButton