added site status count js function, and view in legend