clean up notes flow