Refactored listview and added better functionality.