Changing location name using jquery ui dialog