converted it into a widget