fixed template and index.xhtml