Made POI page and api functions work