base layout for card UI