avoid empty input
add warning when delete notebook