add card flip effect code