handles changed card event