add buttons that groups encounters by date