Add 'freeze' button to ptexViewer + cleanup