changed the index file to a php