Fixed issue with UIScorllView. Cleaned up code.