Added code card functionality