Refactored the last Widget into a template and class.

Todo: Implement refresh (AJAX) for all widgets