edit address logic