performance tweaking for listviews, code cleanups