Linking public profile and edit function