add classes to span and p tags