Improved double clicking functionality for tree.