You can remove global here. It should work for widgets as well