created CR dialog factory for both bank and credit card