adding mode selector logic to runs-summary tab; added xor mode elements