css and api fixes