interfaced pages with api.
minor fix
Implemented races service with api. Still template to do.