updated drag and drop functionality of the BBTreeModelWidget. Switched all pointers to smart pointers (which might need to be changed back).