Changed activity for result to return a settings code