Upd layouts and js
Cards: add layout. Upd ui