Add preview and undo commands to recorder session