code for new printprogressmeter and new thermometer