functionality for add new card