Switched index from html to php