Added functionality to cards