save src and dest to preferences.