changes to edit URL error handling