finish cs logic and api routes
hooked up data api to front end