update vars in widget