Fixing problem with adding data node from popup