support for adding classes to selected elements