Add common view helpers
Add sorting by size and position
FTW css changes
Merge