utility function for returning widget class