Updating note and noteGroup to use model interface.