updated creating adapter to take string array as argument instead of arraylist class