Simplyify list view adding code, and fix bug where the list delegate viewForGroup was given the wrong item when scrolling upwards