refactoring bs3-html5-template