Add widget preference implementation.