build up tenants API and UI