ajax for updating card information when clicking on row in table.