Customized the measure tool