refactor for single race page