history functional
merged with master
clears out history when editing