avoid 'widget is disposed' exceptions