refactors competition view logic to reduce the amount of if statements.