fix NullPointer while panning lattice view
fixes dragging of nodes and labels;
uses a better approach to zoom and pan;
fixed some original layout problems noticed after zooming