moving index to a php file