added switching of panels
added card flip animation