Added support for css class for selected elements