add card flip for index