Profile edit code modified