edit profile function to example app