add urlRoot function to card model