added attaching Class Names to Widgets based on Classes Tree