handle delete last notebook