Fixed UIScrollView offsets.
Code refactoring.