Removing reference specific handling from the listview widget

Since the listview widget shall be a more generic widget managing lists, the reference
specific code is moved to where the actual listwidget for the references is initialized.

Change-Id: Ic7ca3f75643e2a08d9d237d7f7c38b98cfc04176
Merge "Removing reference specific handling from the listview widget"