Added inverted scrolling
Flow layout refactoring