undo frame handling