initializes card functionality