scroll pane in separate method