Added function to activate a card