added listener for the listview