Refactoring add card modal.