add widget template and include it instead of hardcoding output in class