added index for messages views