rotation of scrollview now works.
refactored paging.
more refactoring needed
refactored