added index and basic two way data binding