don't restore editing mode after setting model - it causes feedback loops in browsers
add setConnectHandler