update card layout