first finished version measurementActivity - layout - nu function