added "refresh" function for adjusting the size of the scroll after the content element has changed