Converting index from php to html