remove unnecessary layout and card.lib