Added template and created index