add fill in profile function to index.php