added default HistoryAdapter and several other changes