Implemented addNotebook functionality