changed card to modal