added index and updated views