create api calls and update css