changed code to support card1-panel flip using arrow instead of hover