add classes to index