Moved custom template handler out of index.html and enabled advanced pipeline configuration