edit a list if it exists