added a widget directive