Update layout for table and leave