remove contacts logic