connect facility_view with API(need to fix)