widget

added code for registering widget, can't tell if i did it right or not.