added 'data-aggregate' attribute after layout change
applies ranking to front page only
migrated front-end sorting variables to new layout