started to wire up jedits undo/redo, but its not working right