Move methods into superclass
Make program save before preview