Added switch cases for card creation