Created a createNewCard method in ThreePosFragment to clean up the code