adjust data, add classes to the templates