Bugfix: Issue with scrolling on render. Feature:  prerender function added