separated card layout and card details