Separated UI Code in framework and Credit Card