fix bugs on nc_mgr html and code.