This doesn't get called from anywhere? I just see preview() getting called twice. I think line 179 is supposed to be delete() instead?