custom.html template syntax errors fixed