css and api code