bug fix in select resource video algorithm now executed async
rationalised detach/attach in all data trees and debuged root elements