added functionality for setting scroll position manually.