add functionality to cards