change url setting api to take an nsurl instead of a text string
fix errors in change url setting api to take an nsurl instead of a text string