converted index to .php file