A bunch of work towards editing contacts