updateed gui allocation