refactor uidemo : sdk initializer