Fixed the way of getting the scale and finished the EcDiffUI

Signed-off-by: Jedabero <jedabero@hotmail.com>