move core window callbacks to the standard gui tables
improve treeview creation to not modify output parameter on error