save current path into SharedPreference