fix dolayout and scrolling