removed localhost call for Edit Sample