Tree view corrections

When creating a new scene, it activate it automatically. When deleting
the active scene, it chages the active sceneb to the closest one.