added index to views