added updating notes function