Record results and tree collapse

Made the record results disapear when the tree is collapsed. Also fixed
missing index stats for the old version of ES. Now both versions (.19
and .90) return index stats.