add the selector of listview and improve the code