differentiate between widgets and elements