improve editRectangle handling. Fixes #135

Many places called setEditRectangle(getSelectedPart().getBoundingBox()); or setEditRectangle(null). This logic is now inside a new function updateEditRectangle().

I removed one unnecessary call in MainView was removed.