fix layout to eliminate scrolling. fix CPU won bug