Add restore button to history entries in tree page