mixed up between template and index