create adapter when onCreated