Handle notebook stacks