introduced widget configuration attribute 'mode'