error handling for edit_www