auto save current note when location changes