optimize the layout and sheetstyle