autofocus for new nodes and for editing nodes