fixed mainpanel async task. Now uses a UIthread to update measurements.