styling and logic for matches added