Creating a controller for flipping the event cards