Index userprofile function