Refactored template to separate file, added filter that allows template to customize template for widget