Added view function for widget. Need to abtract admin form.