updated IF statement to apply created date only for new notes