Adds properties to hold current item index and a list to hold items.