Creating elements do not influence history

It's buggy right now, will do a better implementation later, right now
it's not a priority.