code cleanup, added smooth scrolling fix, but it only works on iOS 7