add ed popbox and fixed css bug & different for js lab to calculate the width of dom to make popbox center