save notes function