Modified UI dashboard javascript to call new APIs

Change-Id: I3dde85004e18d3738c345e7c9de545cfece647ff