Index converted into html from php and fixed some minor bugs.