added ability to change widget layers 'on fly'