Make all leaf links working in tree view