update gui and cloding