make nameBox a global
editbox grabs focus from node/edge

avoids accidentally deleting nodes or edges while deleting text.