toggle primary email now works correctly