update gui onload