first version of card layout