fix api returning HTML on instead of JSON for logicalgroup management screen