method to create list view