fixed weird html error, added undo-tree