Code written for List View.