Admin app

Refactoring -> Extracting local variable treeSelected.