added functionality to buttons in listViews