Added functionality to edit contact