fixed display order of history, and problems with history when an empty question is asked