Worked on outputting widget view function.