update layout and extract deck box