Added template and index