Added card form and flip functionality to cards