bugfix

wrapped bind functions in scope function to rebind events on every data
change and therefore new creation of tree