Removed unneeded code in listviews