changes to hopefully fix issue with deleting notebook pages