Adding functionality for the card to detect when it has been rendered to the DOM.