viewContact method updated