Make handle tree to match routes