add edit profile logics
merged