reorder check so that renaming in read-only notebooks does not work