clearing, cleanup for notebooks