update guibased on id