config widget now can be called with more options.