adjusted save action to save to the currently loaded path