remove localhost from ajax call and fixed diag to interface with uvcmetrics