added functionality of information when selecting cards