added setScrollPosition method