made more changes to the view contacts code