Host close/open uses correct ajax format