added array and cursor adapter