Add functionality to edit contacts