fixed some bugs, but cursor adapter doesnt work like I wanted, need to convert to array adapter