added widget support