Deleting a notebook would only work on the first item because array.slice works differently than intended. When adding a new notebook, it now focuses on that notebook and loads the proper notes. Same when deleting a notebook.