layout box improvement