update index.php and templateDetails.xml