Refactored code in LabViewer. Added methods to initWidgets, handling zoom events