Adding notes logic