setup card layout