tutorial part 7
add edit function of locations