added cursor adapter and click listener to list view