move initialize adapter to function
improve create forget activity.