added check for previous notes and sharing link